//
//  vdHeader.h
//  Void Dead
//
//  Created by Sidney Just on 16.11.09.
//
//  Copyright © 2009 by Sidney Just
//  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
//  documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
//  the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 
//  and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
//  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
//  PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE 
//  FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
//  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#define ALLOW_ES2 1 // This is deprecated since Void Dead 0.4.2, it's only defined because of compatibility reasons. Will be removed in the next major release

#define USE_OS_30 1 // Comment this out if you don't want iPhone OS 3.0 specific things
//#define USE_OS_32 1 // Comment this out if you don't want iPhone OS 3.2 specific things
//#define USE_OS_40 1 // Comment this out if you don't want iPhone OS 4.0 specific things


#import <QuartzCore/QuartzCore.h>

#import <OpenGLES/EAGLDrawable.h>
#import <OpenGLES/EAGL.h>


#if defined(USE_OS_30) || defined(USE_OS_32) || defined(USE_OS_40) || USE_OS_32 || USE_OS_40
#import <OpenGLES/ES2/gl.h>
#endif

#import <OpenGLES/ES1/gl.h>

typedef enum {
	OpenGLESAPI1 = 1,
	OpenGLESAPI2 = 2
} vdRenderingAPI; // This is equal to EAGLRenderingAPI, it's only implemented because kEAGLRenderingAPIOpenGLES2 is unknown when buildung for OS 2.x. 
// So this is only implemented to be backward compatible

typedef enum {
	vdNoError,
	vdFallback,
	vdShaderUnsupported,
	vdShaderFailedToCompileVertexShader,
	vdShaderFailedToCompileFragmentShader,
	vdShaderFailedToLinkShader,
	vdShaderFailedToLoadShader
} vdEngineErrorType;






